<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
<body>
<ui:composition>
	<ul id="otokLinkPanel" class="menu clearfix">
		<li class="first"><f:subview
			rendered="#{!facesContext.externalContext.requestServletPath.endsWith('otok.seam')}">
			<h:outputLink
				value="#{application.contextPath}/guides/otoci/otok.seam">
				<f:param name="idOtoka" value="#{otokDetails.idOtoka}" />
				<f:param name="l" value="#{currentLang}" />
				<f:param name="title"
					value="#{titleAction.getUrlTitle(otokDetails)}" />
				<h:outputText value="#{messages['label.overview']}" />
			</h:outputLink>
		</f:subview> <f:subview
			rendered="#{facesContext.externalContext.requestServletPath.endsWith('otok.seam')}">
			<h:outputText value="#{messages['label.overview']}" />
		</f:subview></li>
		<f:subview rendered="#{mjestaByOtok.size() > 0}">
			<li><f:subview
				rendered="#{!facesContext.externalContext.requestServletPath.endsWith('mjesta.seam')}">
				<h:outputLink
					value="#{application.contextPath}/guides/otoci/mjesta.seam">
					<f:param name="idOtoka" value="#{param.idOtoka}" />
					<f:param name="l" value="#{currentLang}" />
					<f:param name="title"
						value="#{titleAction.getUrlTitle(otokDetails)}" />
					<h:outputText value="#{messages['label.places']}" />
				</h:outputLink>
			</f:subview> <f:subview
				rendered="#{facesContext.externalContext.requestServletPath.endsWith('mjesta.seam')}">
				<h:outputText value="#{messages['label.places']}" />
			</f:subview></li>
		</f:subview>
		<ui:repeat value="#{tipoviObjekataByOtok}" var="to">
			<li><f:subview
				rendered="#{param.idTipaObjekta != to.idTipaObjekta}">
				<h:outputLink
					value="#{application.contextPath}/guides/otoci/objekti.seam">
					<f:param name="idOtoka" value="#{otokDetails.idOtoka}" />
					<f:param name="idTipaObjekta" value="#{to.idTipaObjekta}" />
					<f:param name="l" value="#{currentLang}" />
					<f:param name="title"
						value="#{titleAction.getUrlTitle(otokDetails,to.idTipaObjekta)}" />
					<h:outputText
						value="#{messages[stringUtil.merge(to.idTipaObjekta,'.plural')]}" />
				</h:outputLink>
			</f:subview> <f:subview rendered="#{param.idTipaObjekta == to.idTipaObjekta}">
				<h:outputText
					value="#{messages[stringUtil.merge(to.idTipaObjekta,'.plural')]}" />
			</f:subview></li>
		</ui:repeat>
	</ul>
</ui:composition>
</body>
</html>
